package com.mdd.common.validate.label;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 标签参数
 * @author LikeAdmin
 */
@Data
@ApiModel("标签更新参数")
public class LabelUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "ID缺失")
    @ApiModelProperty(value = "ID")
    private Integer id;

    @NotNull(message = "请输入标签名称")
    @ApiModelProperty(value = "标签名称")
    private String name;

    //@NotNull(message = "请输入标签值")
    @ApiModelProperty(value = "标签值")
    private String value;

    @ApiModelProperty(value = "文字颜色")
    private String color;

    @ApiModelProperty(value = "背景颜色")
    private String backgroundColor;

}
